package com.lzy.util;

import org.thymeleaf.util.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @autor shkstart
 * @create 2021-01-06 20:25)
 */
public class StringUtil {
    public static List<Long> converToList(String ids){
        List<Long> list = new ArrayList<>();

        if(!StringUtils.isEmpty(ids) || ids != null){
            String [] idarray = ids.split(",");
            for(int i=0;i<idarray.length;i++){
                list.add(Long.valueOf(idarray[i]));
            }
        }

        return list;
    }


}
